/**法规文件api */
import request from './request.js';
let service = request.service;
let download = request.download;
export default {
    /**人力资源岗位管理-根据菜单id获取岗位说明*/
    getStationDescByMenuId(id) {
        return service({
            url: `/adscm/operation/hrStationManage/selectStationDescById/${id}`,
            method: 'get'
        })
    },
    /**人力资源岗位管理-根据菜单id获取招聘描述*/
    getRecruitmentDescByMenuId(id) {
        return service({
            url: `/adscm/operation/hrStationManage/selectRecruitmentDescById/${id}`,
            method: 'get'
        })
    },
    /**人力资源岗位管理-修改招聘描述*/
    updateRecruitmentDesc(data) {
        return service({
            url: `/adscm/operation/hrStationManage/updateRecruitmentDesc`,
            method: 'post',
            data
        })
    },
    /**人力资源岗位管理-新增人力资源岗位说明*/
    addContent(data) {
        return service({
            url: `/adscm/operation/hrStationManage/insert`,
            method: 'post',
            data
        })
    },
    /**人力资源岗位管理-修改人力资源岗位说明*/
    updateStationDesc(data) {
        return service({
            url: `/adscm/operation/hrStationManage/updateStationDesc`,
            method: 'post',
            data
        })
    },

    /**人力资源岗位管理-简历筛选列表*/
    getResumeScreeningList(hid) {
        return service({
            url: `/adscm/operation/hrResume/selectByHid/${hid}`,
            method: 'get'
        })
    },
    /**人力资源岗位管理- 新增/修改 简历筛选*/
    insertUpdateResumeScreening(type, data) {
        return service({
            url: `/adscm/operation/hrResume/${type}`,
            method: 'post',
            data
        })
    },
    /**人力资源岗位管理- 简历筛选 -图片上传列表*/
    hrResumePictureUploadImageList(rid) {
        return service({
            url: `/adscm/operation/hrResumePicture/selectByRid/${rid}`,
            method: 'get'
        })
    },
    /**人力资源岗位管理- 简历筛选 - 新增图片上传*/
    insertUploadImage(data) {
        return service({
            url: `/adscm/operation/hrResumePicture/insert`,
            method: 'post',
            data
        })
    },
    /**人力资源岗位管理- 简历筛选 - 删除图片上传*/
    deleteUploadImage(id) {
        return service({
            url: `/adscm/operation/hrResumePicture/delete/${id}`,
            method: 'get'
        })
    },
    /**人力资源岗位管理- 简历筛选 -附件上传列表*/
    hrResumeEnclosureUploadList(rid) {
        return service({
            url: `/adscm/operation/hrResumeAttachment/selectByRid/${rid}`,
            method: 'get'
        })
    },
    /**人力资源岗位管理- 简历筛选 -附件上传url*/
    getEnclosureUploadUrl() {
        return download({
            url: `/adscm/operation/hrResumeAttachment/upload`
        })
    },
    /**人力资源岗位管理- 简历筛选 -删除附件*/
    deleteEnclosure(id) {
        return service({
            url: `/adscm/operation/hrResumeAttachment/delete/${id}`,
            method: 'get'
        })
    },
    /**人力资源岗位管理- 简历筛选 -下载附件*/
    downloadEnclosure(id) {
        return download({
            url: `/adscm/operation/hrResumeAttachment/download/${id}`
        })
    },
    /**人力资源岗位管理- 记录列表*/
    getHrRecordList(hid, type) {
        return service({
            url: `/adscm/operation/hrRecord/selectByHid/${hid}/${type}`,
            method: 'get'
        })
    },
    /**人力资源岗位管理- 新增修改记录*/
    insertUpdateRecord(type, data) {
        return service({
            url: `/adscm/operation/hrRecord/${type}`,
            method: 'post',
            data
        })
    },
    /**人力资源岗位管理设置-查询菜单列表 */
    getSettingMenu() {
        return service({
            url: `/adscm/operation/hrStationManage/selectMenu`,
            method: 'post'
        })
    },
    /**人力资源岗位管理设置-新增菜单 */
    addSettingMenu(data) {
        return service({
            url: `/adscm/operation/hrStationManage/addMenu`,
            method: 'post',
            data
        })
    },
    /**人力资源岗位管理设置-删除菜单 */
    deleteSettingMenu(id) {
        return service({
            url: `/adscm/operation/hrStationManage/deleteMenu/${id}`,
            method: 'get'
        })
    }
}
